<?php


require_once '../config.php';
require_once '../functions.php';


books_get_current_user();

$make = book_fetch_all("select * from make");


?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <title>Users &laquo; Admin</title>
  <link rel="stylesheet" href="/static/assets/vendors/bootstrap/css/bootstrap.css">
  <link rel="stylesheet" href="/static/assets/vendors/font-awesome/css/font-awesome.css">
  <link rel="stylesheet" href="/static/assets/vendors/nprogress/nprogress.css">
  <link rel="stylesheet" href="/static/assets/css/admin.css">
  <script src="/static/assets/vendors/nprogress/nprogress.js"></script>
</head>
<body>
  <script>NProgress.start()</script>

  <div class="main">
    <?php include 'inc/navbar_admin.php'; ?>

    <div class="container-fluid">
      <div class="page-title">
        <h1>所有评论</h1>
      </div>
      <table class="table table-striped table-bordered table-hover">
        <thead>
          <tr>
            
            <th>姓名</th>
            <th>QQ</th>
            <th>昵称</th>
            <th>内容</th>
            <th>ISBN</th>
            <th class="text-center" width="100">操作</th>
          </tr>
        </thead>
        <tbody>
          <?php foreach ($make as $item):?>
            <tr>
            <td><?php echo $item['name']?></td>
            <td><?php echo $item['make_qq']?></td>
            <td><?php echo $item['make_nick']?></td>
            <td><?php echo $item['make_content']?></td>
            <td><?php echo $item['make_isbn']?></td>

            <td class="text-center">
              <a href="/admin/minute-add.php?id=<?php echo $item['id']; ?>" class="btn btn-danger btn-xs">编辑</a>
              <a href="/admin/minute-delete.php?id=<?php echo $item['id']; ?>" class="btn btn-warning btn-xs">删除</a>
            </td>
          </tr>
          <?php endforeach;?>
         
         
        </tbody>
      </table>
    </div>
  </div>

  <?php $current_page = 'book'; ?>
  <?php include 'inc/sidebar.php'; ?>

  <script src="/static/assets/vendors/jquery/jquery.js"></script>
  <script src="/static/assets/vendors/bootstrap/js/bootstrap.js"></script>
  <script>NProgress.done()</script>
</body>
</html>
